﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminPage.master" AutoEventWireup="true" CodeFile="WeightOfMail_Management.aspx.cs" Inherits="WeightOfMailManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="style3" align="center" >
        <tr>
            <td style="background-image: url(../images/bg_head.png); height: 30px" 
                class="style3">

                <asp:Label ID="Label1" runat="server" ForeColor="White" Text="Weight Of Mail Management" 
                    Font-Bold="True" ></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3" align="center">
                <asp:GridView ID="gvWeight" runat="server" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="WeightID" 
                    EmptyDataText="There are no data records to display." ForeColor="#333333" 
                    GridLines="None" HorizontalAlign="Center" PageSize="5" ShowFooter="True" 
                    onrowcommand="gvWeight_RowCommand">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="WeightID" HeaderText="Weight ID" ReadOnly="True" 
                            SortExpression="WeightID" />
                        <asp:BoundField DataField="Weight" HeaderText="Weight" 
                            SortExpression="Weight" />
                        <asp:BoundField DataField="WeightCharge" HeaderText="Charge" 
                            SortExpression="WeightCharge" />
                        <asp:TemplateField HeaderText="Command">
                            <ItemTemplate>
                                <asp:ImageButton ID="imgbUpdate" runat="server" Height="25px" 
                                    ImageUrl="~/images/img_Update.png" 
                                    CommandArgument='<%# Eval("WeightID") %>' CommandName="WUpdate" />
                                <asp:ImageButton ID="imgbDelete" runat="server" Height="25px" 
                                    ImageUrl="~/images/img_Delete.png" 
                                    CommandArgument='<%# Eval("WeightID") %>' CommandName="WDelete" 
                                    onclientclick="return confirm('Are you want to delete this Weight ?')" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </td>
        </tr>
        </table>
</asp:Content>

